<?php
namespace app\zhonghang\controller;
use think\Controller;
use think\Request;
use think\Db;
use think\Session;
use think\Lang;

class Finance extends Controller {
    //空操作
    public function _initialize(){
        parent::_initialize();
    }
    public function _empty(){
        header("HTTP/1.0 404 Not Found");
        $this->display('Public:404');
    }
    /**
     * 内部应用
     */
//   内部OA
    public function index()
    {
        $chanpin =  DB::name('Goods_category')->where('parent_id',0)->where('is_show',1)->limit('1')->find();
        $erweima = DB::name('Website')->where('w_logo_status',1)->find();
        $lists = DB::name('Website')->find();
        $lisst = Lang::get('dbcp');
        $nbyytp=DB::name('Config')->where('name','nbyytp')->value('value');
        $this->assign('nbyytp',$nbyytp);
        $this->assign('lisst',$lisst);
        $this->assign('lists',$lists);
        $this->assign('erweima',$erweima);
        $this->assign('chanpin',$chanpin);
        return $this->fetch('ff/ffwd');
    }
//    HCM
    public function ff()
    {
        $lists = DB::name('Website')->find();
        $lisst = Lang::get('dbcp');
        $this->assign('lisst',$lisst);
        $this->assign('lists',$lists);
        return $this->fetch('ff/ff');
    }
//    企业邮箱
    public function xz()
    {
        $lists = DB::name('Website')->find();
        $lisst = Lang::get('dbcp');
        $this->assign('lisst',$lisst);
        $this->assign('lists',$lists);
        return $this->fetch('ff/xz');
    }


}